import request from '../utils/request'
import { baseURL } from '../config'
import {AddUserGroup, DeleteUserGroup} from "../types/group";

export function queryUserGroup(){
    return request({
        baseURL: baseURL,
        url: '/face/queryUserGroup',
        method: 'get'
    })
}

export function addUserGroup(params: AddUserGroup) {
    return request({
        baseURL: baseURL,
        url: '/face/addUserGroup',
        method: 'put',
        headers: {
            'Content-Type': 'application/json'
        },
        data: params
    })
}

export function deleteUserGroup(params: DeleteUserGroup) {
    return request({
        baseURL: baseURL,
        url: '/face/deleteUserGroup',
        method: 'delete',
        headers: {
            'Content-Type': 'application/json'
        },
        data: params
    })
}